﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReplenishementExeList.aspx.cs"
    EnableEventValidation="false" Inherits="WMS6.Web.Inventory.ReplenishementExeList" meta:resourcekey="Page" %>
<%@ PreviousPageType VirtualPath="~/Inventory/ReplenishementExeQuery.aspx" %>
<%@ Register src="../UserControls/Pager.ascx" tagname="Pager" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>ReplenishementExeList</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initListPage();
        }
        
        function returnSearch()
        {
            var from = document.getElementById("hdnFrom").value;
            if(from != "")
            {
                window.location.href = "ReplenishementExeQuery.aspx";
            }
            else
            {
                window.history.go(-1);
            }
        }
        
        function confirmMsg(code)
        {
            if(code == "C001")
            {
                if(confirm('<%=GetGlobalMsgResource("C001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
        }
        
    </script>

</head>
<body>
    <form id="F5252" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblReceiptInquiryList" runat="server" CssClass="label_header" Text="补货执行列表" meta:resourcekey="lblReceiptInquiryList" ></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnConfirm" runat="server" CssClass="button" Text="确认" Enabled="false" OnClick="btnConfirm_Click" meta:resourcekey="btnConfirm" />
                    </td>                    
                </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div id="div_List">
                    <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
                    </div>
                    <asp:GridView ID="gvReplenishementExeList" runat="server" AutoGenerateColumns="False"   OnInit="gvReplenishementExeList_Init" OnSorting="gvReplenishementExeList_Sorting"
                        AllowSorting="true" CssClass="gridview" DataKeyNames="REPLENISHMENT_ID,STATUS" PageSize="20"  onrowdatabound="gvReplenishementExeList_RowDataBound" 
                        Width="1200px" meta:resourcekey="gvReplenishementExeList">
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                <ItemStyle CssClass="GridViewRowWidth_50" />
                            </asp:BoundField>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                 <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('5252','gvReplenishementExeList');"
                                                                    onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                    <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvReplenishementExeList');" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chbSelect" runat="server" />
                                </ItemTemplate>
                                <FooterTemplate>
                                    <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvReplenishementExeList');" />
                                </FooterTemplate>
                                <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                            </asp:TemplateField>
                             <asp:BoundField DataField="REPLENISHMENT_ID" HeaderText="补货单号" FooterText="补货单号" SortExpression="R.REPLENISHMENT_ID"
                                meta:resourcekey="REPLENISHMENT_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                               <asp:BoundField DataField="STATUS_D" HeaderText="状态" FooterText="状态" SortExpression="TD.STATUS"
                                meta:resourcekey="STATUS">
                                <ItemStyle CssClass="GridViewRowWidth_50" />
                            </asp:BoundField>
                            <asp:BoundField DataField="OWNER_ID" HeaderText="货主代码" FooterText="货主代码" SortExpression="R.OWNER_ID"
                                meta:resourcekey="OWNER_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="SKU_ID" HeaderText="货品代码" FooterText="货品代码" SortExpression="R.SKU_ID"
                                meta:resourcekey="SKU_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT" HeaderText="批号" FooterText="批号" SortExpression="R.LOT"
                                meta:resourcekey="LOT">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="FROM_LOC" HeaderText="来源货位" FooterText="来源货位" SortExpression="R.FROM_LOC"
                                meta:resourcekey="FROM_LOC">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TO_LOC" HeaderText="目标货位" FooterText="目标货位" SortExpression="R.TO_LOC"
                                meta:resourcekey="TO_LOC">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LPN_ID" HeaderText="LPN" FooterText="LPN" SortExpression="R.LPN_ID"
                                meta:resourcekey="LPN_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT" HeaderText="批次" FooterText="批次" SortExpression="R.LOT"
                                meta:resourcekey="Batch">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="QTY" HeaderText="数量" FooterText="数量" SortExpression="R.QTY"
                                meta:resourcekey="QTY">
                                <ItemStyle CssClass="GridViewRowWidth_50" />
                            </asp:BoundField>
                            <asp:BoundField DataField="PACK_ID" HeaderText="包装代码" FooterText="包装代码" SortExpression="R.PACK_ID"
                                meta:resourcekey="PACK_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="UOM_ID" HeaderText="单位" FooterText="单位" SortExpression="R.UOM_ID"
                                meta:resourcekey="UOM_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                        </Columns>
                    </asp:GridView>
                </div>
                    <div id="div_pager">
                        <uc1:Pager ID="PagerFooter" runat="server"  OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click" OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click"/>
                  </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <div id="div_List_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="新建查询" CssClass="button" Enabled="false"
                            OnClientClick="javascript:window.location.href='ReplenishementExeQuery.aspx';return false;"
                            meta:resourcekey="btnSearchResource1" />
                    </td>
                    <td>
                        <asp:Button ID="btnReSearch" runat="server" Text="返回查询" CssClass="button" Enabled="false"
                            OnClientClick="javascript:returnSearch();return false;" meta:resourcekey="btnReSearchResource1" />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="导出" CssClass="button" Enabled="false"
                            OnClick="btnExport_Click" />
                    </td>
                </tr>
            </table>
             <input type="hidden" id="hdnFrom" runat="server" />
            <input type="hidden" id="hdnActionID" runat="server" />
        </div>
    </div>
    </form>
</body>
</html>
